<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  <title></title>
    <script type="text/javascript" src="Validator.js"></script>
</head>
<body>
<form name="theForm" id="demo" method="get" onSubmit="return Validator.Validate(this,2)">
    <table>
 <tr>
  <td>身份证号：</td><td><input name="Card" dataType="IdCard" msg="身份证号错误" id="test"
                           class="t {dataType:IdCard;msg:身份证号错误}" onblur="this.style.borderColor='red'"></td>
 </tr>
   <!--<tr>
  <td>真实姓名：</td><td><input name="Name" dataType="Chinese" msg="真实姓名只允许中文"></td>
 </tr>
 <tr>
  <td>ID：</td><td><input name="username" dataType="Username" msg="ID名不符合规定"></td>
 </tr>-->
    <tr>
  <td colspan="2"><input name="Submit" type="submit" value="确定提交"><input onClick="Validator.Validate(document.getElementById('demo'))" value="检验模式1" type="button"><input onClick="Validator.Validate(document.getElementById('demo'),2)" value="检验模式2" type="button"><input onClick="Validator.Validate(document.getElementById('demo'),3)" value="检验模式3" type="button"></td>
 </tr>
        
 </table>
 </form>
</body>
</html>